﻿using Map;

namespace Map_Creator.MapInfo
{
    public class AnimatedTile : AnimatedTileStruct
    {
        public static decimal GlobalFrame;

        public override short Value
        {
            get { return Frames[(int) (GlobalFrame%Frames.Length)].Value; }
        }

        public AnimatedTile()
        {
            Type = TileType.Animated;
        }
    }
}
